package com.three.lab.page.message;


import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.three.lab.R;
import com.three.lab.base.AppConstant;
import com.three.lab.base.BaseActivity;
import com.three.lab.bean.OrderMsgBean;

/**
 * 官方消息详情
 * created by lqd on 2024-0709.
 */
public class OfficeMsgDetailActivity extends BaseActivity {

    private TextView textView,tvTitle;
    private OrderMsgBean bean = null;

    @Override
    protected void initParms(Bundle bundle) {
        if (bundle != null) {
            bean = bundle.getParcelable(AppConstant.EXTRAS_DATA);
        }
    }

    @Override
    protected int bindLayout() {
        return R.layout.activity_office_msg_detail;
    }

    @Override
    protected void initViews(View view, Bundle savedInstanceState) {
        tvTitle = $(R.id.tv_title);
        tvTitle.setText(R.string.office_msg);
        textView = $(R.id.tv_content);
    }

    @Override
    protected void setListener() {
        $(R.id.iv_left).setOnClickListener(this);
    }

    @Override
    protected void widgetClick(View v) {
        switch (v.getId()){
            case R.id.iv_left:
                finish();
                break;
        }
    }

    @Override
    protected void initData(Context mContext) {
        if (bean != null) {
            textView.setText(bean.getConent());
        }
    }
}